package com.pug.service.hotel;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pug.mapper.hotel.HotelTypeNumMapper;
import com.pug.pojo.HotelTypeNum;
import org.springframework.stereotype.Service;

/**
 * Author: lqm
 * create: 2022/5/11 15:10
 * Lover: lqx
 *
 * @see
 */
@Service
public class HotelTypeNumServiceImpl extends ServiceImpl<HotelTypeNumMapper, HotelTypeNum> implements IHotelTypeNumService {
    @Override
    public int queryStoreByHotelIdAndTypeId(Long hotelId, Long hotelTypeId) {
        return this.baseMapper.queryStoreByHotelIdAndTypeId(hotelId,hotelTypeId);
    }

    @Override
    public int deleteNum(Long hotelId, Long hotelTypeId, int num) {
        return this.baseMapper.deleteNum(hotelId,hotelTypeId,num);
    }
}
